-- GENERATED SPELL FOR [Captain Welsington] --


function spell0_29489(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(32588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29489', 5267, 1)
end

function spell1_29489(pUnit, Event) --@Intercept,n/a--
pUnit:FullCastSpellOnTarget(27577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29489', 554, 1)
end

function spell2_29489(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29489', 5282, 1)
end

function Sorts_29489(pUnit, Event)
local choix_sorts_29489 = math.random(0, 2)
if choix_sorts_29489 == 0 then
pUnit:RegisterEvent('spell0_29489', 1, 1)
end
if choix_sorts_29489 == 1 then
pUnit:RegisterEvent('spell1_29489', 1, 1)
end
if choix_sorts_29489 == 2 then
pUnit:RegisterEvent('spell2_29489', 1, 1)
end
end

function mob29489_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29489', math.random(1500, 3000), 1)
end

function mob29489_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29489_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29489_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29489, 1, 'mob29489_Action')
RegisterUnitEvent(29489, 2, 'mob29489_Leave')
RegisterUnitEvent(29489, 3, 'mob29489_Kill')
RegisterUnitEvent(29489, 4, 'mob29489_Die')
